package org.spring.study.module.controller;

import org.spring.study.module.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sunliang
 * @version 1.0
 * @date 2021/3/20 22:12
 */
@RestController
public class TestController
{
	@Autowired
	private HelloService helloService;

	@RequestMapping("/")
	String home()
	{
		return helloService.sayHello();
	}
}
